package com.ssd.entity.dto.request;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.Null;
import java.time.LocalDateTime;

@Data
@ApiModel("活动修改请求模型")
@Validated
public class GiftUpdateReqDTO {

    @ApiModelProperty(value = "礼品ID",required = true)
    @Null(message = "修改礼品id必须填")
    private Long giftId;

    @ApiModelProperty(value = "礼品名称")
    private String giftName;

    @ApiModelProperty(value = "礼品图片")
    private String giftImage;

    @ApiModelProperty(value = "礼品兑换所需的积分")
    private Integer requiredPoints;

    @ApiModelProperty(value = "状态：1 上架，2 下架")
    private Integer status;

    @ApiModelProperty(value = "库存")
    private Integer stock;

    @ApiModelProperty(value = "已兑换数量")
    private Integer sales;

    @ApiModelProperty(value = "礼品详情")
    private String remark;

}
